module.exports = {
    entry:'./src/js/main.js',
    output:{
        path:__dirname + "/dist/js",
        filename:'bundle.js'
    },
    module:{
        rules:[
            {
                test:/\.js$/,
                use:{loader:"babel-loader"}
            },
            {
                test:/\.css$/,
                use:[
                    {loader:"style-loader"},
                    {loader:"css-loader"}
                ]
            },
            {
                test:/\.scss$/,
                use:[
                    {loader:"style-loader"},
                    {loader:"css-loader"},
                    {loader:"sass-loader"}
                ]
            }
        ]
    }
}